package chai.ning.interfaces.train_12;

public abstract class Machine {

	private int energy;	//表示某台机器所拥有能量的成员变量

	public Machine(int energy ) {
		this.energy = energy ;
	}
	
	public int getEnergy() {
		return energy;
	}

	public void setEnergy(int energy) {
		this.energy = energy;
	}
	
	
}
